/*
 * @Description:
 * @Author: fhw
 * @Date: 2022-08-05 11:32:48
 */
import { forwardRef, Module } from '@nestjs/common'
import { SocketFriendChatService } from './socket-friend-chat.service'
import { SocketFriendChatGateway } from './socket-friend-chat.gateway'
import { TypeOrmModule } from '@nestjs/typeorm'
import { ChatUserModule } from '../../chat_user/chat_user.module'
import { ConfigModule } from '../config/config.module'
import { UserChatRecord } from 'src/chat-record/entities/user-chat-record.entity'
import { ChatUserFriendsModule } from 'src/chat_user_friends/chat_user_friends.module'
import { HistorySessionModule } from 'src/history-session/history-session.module'
import { SocketRoomModule } from '../socket-room/socket-room.module'

@Module({
  imports: [
    TypeOrmModule.forFeature([UserChatRecord]),
    forwardRef(() => ChatUserModule),
    forwardRef(() => ConfigModule),
    forwardRef(() => HistorySessionModule),
    forwardRef(() => ChatUserFriendsModule),
    forwardRef(() => SocketRoomModule),
  ],
  providers: [SocketFriendChatGateway, SocketFriendChatService],
  exports: [SocketFriendChatService, SocketFriendChatGateway]
})
export class SocketFriendChatModule { }
